import random

money = 10000
for yuangong in range(1, 21):
    #随机绩效 使用随机数
    jixiaofen = random.randint(1, 10)  #[1,10]
    if jixiaofen > 5: #绩效分大于5才发工资
        money -= 1000 #在总工资的基础上减去1000
        print(f"员工编号{yuangong}，领取了1000")
        print(f"员工编号{yuangong}，绩效分时{jixiaofen}")
    if money == 0:
        break
print(money)